HTMLify

README.md
Views: 57 | Author: cody
# Pig Game (JavaScript)

Welcome to the Pig Game! This simple web-based game allows two players to take turns rolling dice and competing for victory. It's a fun and interactive way to challenge your luck and strategy as you aim to reach the target score.

![Screenshot 2023-10-08 221001](https://github.com/just-ctrlC-ctrlV/30DaysOfJavaScript-me/assets/109028862/79fe44eb-f37e-4664-b98b-8fa593065975)

## Table of Contents

- [Getting Started](#getting-started)
- [Game Rules](#game-rules)
- [How to Play](#how-to-play)

## Getting Started

To get started with the Pig Game, follow these simple steps:

1. Clone the repository or download the source code to your local machine.
2. Ensure you install a modern web browser (e.g., Chrome, Firefox, Edge).
3. Open the `index.html` file in your web browser.

Now you and a friend are ready to start playing the Pig Game!

## Game Rules

The rules of the Pig Game are easy to understand:

- Two players take turns rolling a standard six-sided die.
- On a player's turn, they can roll the die as often as they like and accumulate points with each roll.
- If a player rolls a 1, they lose all the points accumulated during that turn, and their turn ends.
- The player can choose to "Hold" and add their turn points to their total score to secure them.
- The first player to reach the target score (default is 100 points) wins the game.

Comments